package com.xlh.pojo.courseTest;

import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
public class CourseQuestionRepository implements Serializable {
    private Long id;

    private Long courseId;

    /**
     * 章节关系表id
     *
     * @mbg.generated
     */
    private Long chapterId;

    /**
     * 试题创建人id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 是否预置，0-否，1-是
     *
     * @mbg.generated
     */
    private Boolean isPreset;

    /**
     * 源试题id，从系统预制导入过来的试题填写，如果是自定义试题（excel导入或者直接插入）则不填写
     *
     * @mbg.generated
     */
    private Long sourceQuestionId;

    /**
     * 业务类型，1-考试，2-随堂练习
     *
     * @mbg.generated
     */
    private Integer businessType;

    /**
     * 题目类型，关联题目类型映射表
     *
     * @mbg.generated
     */
    private Integer questionType;

    /**
     * 试题内容
     *
     * @mbg.generated
     */
    private String content;

    /**
     * 文件存放路径（绝对路径）
     *
     * @mbg.generated
     */
    private String path;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 变更时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 是否删除
     *
     * @mbg.generated
     */
    private Boolean delMark;

    /**
     * md文本内容
     *
     * @mbg.generated
     */
    private String mdContent;

    /**
     * html文件内容
     *
     * @mbg.generated
     */
    private String htmlContent;

    private String jxContent;
    private String jxContentHtml;
    private Integer jz;

    private static final long serialVersionUID = 1L;

    public CourseQuestionRepository(
            Long userId, Long courseId, Integer businessType, boolean isPreset, Integer questionType, String mdContent,
            String htmlContent, Long chapterId
    ) {
        this.userId = userId;
        this.chapterId = chapterId;
        this.courseId = courseId;
        this.businessType = businessType;
        this.isPreset = isPreset;
        this.questionType = questionType;
        this.mdContent = mdContent;
        this.htmlContent = htmlContent;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getChapterId() {
        return chapterId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Boolean getIsPreset() {
        return isPreset;
    }

    public void setIsPreset(Boolean isPreset) {
        this.isPreset = isPreset;
    }

    public Long getSourceQuestionId() {
        return sourceQuestionId;
    }

    public void setSourceQuestionId(Long sourceQuestionId) {
        this.sourceQuestionId = sourceQuestionId;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDelMark() {
        return delMark;
    }

    public void setDelMark(Boolean delMark) {
        this.delMark = delMark;
    }

    public String getMdContent() {
        return mdContent;
    }

    public void setMdContent(String mdContent) {
        this.mdContent = mdContent;
    }

    public String getHtmlContent() {
        return htmlContent;
    }

    public void setHtmlContent(String htmlContent) {
        this.htmlContent = htmlContent;
    }

    public String getJxContent() {
        return jxContent;
    }

    public void setJxContent(String jxContent) {
        this.jxContent = jxContent;
    }

    public Integer getJz() {
        return jz;
    }

    public void setJz(Integer jz) {
        this.jz = jz;
    }

    public String getJxContentHtml() {
        return jxContentHtml;
    }

    public void setJxContentHtml(String jxContentHtml) {
        this.jxContentHtml = jxContentHtml;
    }

    @Override
    public String toString() {
        return "CourseQuestionRepository{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", chapterId=" + chapterId +
                ", userId=" + userId +
                ", isPreset=" + isPreset +
                ", sourceQuestionId=" + sourceQuestionId +
                ", businessType=" + businessType +
                ", questionType=" + questionType +
                ", content='" + content + '\'' +
                ", path='" + path + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delMark=" + delMark +
                ", mdContent='" + mdContent + '\'' +
                ", htmlContent='" + htmlContent + '\'' +
                ", jxContent='" + jxContent + '\'' +
                ", jz='" + jz + '\'' +
                '}';
    }
}